import request from '@/utils/request';

/**
 * 查询财务指标列表
 * @param query
 * @returns {*}
 */

export const listFinanceIndexThreshold = (query) => {
  return request({
    url: '/system/financeIndexThreshold/list',
    method: 'get',
    params: query
  });
};

/**
 * 查询财务指标详细
 * @param fitId
 */
export const getFinanceIndexThreshold = (fitId) => {
  return request({
    url: '/system/financeIndexThreshold/' + fitId,
    method: 'get'
  });
};

/**
 * 新增财务指标
 * @param data
 */
export const addFinanceIndexThreshold = (data) => {
  return request({
    url: '/system/financeIndexThreshold',
    method: 'post',
    data: data
  });
};

/**
 * 修改财务指标
 * @param data
 */
export const updateFinanceIndexThreshold = (data) => {
  return request({
    url: '/system/financeIndexThreshold',
    method: 'put',
    data: data
  });
};

/**
 * 删除财务指标
 * @param fitId
 */
export const delFinanceIndexThreshold = (fitId) => {
  return request({
    url: '/system/financeIndexThreshold/' + fitId,
    method: 'delete'
  });
};
